Return nested for loop first element by predicate using streams

join shbcf.ru